package com.fairytask.items
{
	import starling.display.Button;
	import starling.display.Image;
	import starling.display.Sprite;
	import starling.textures.Texture;

	/**
	 * 泡泡 
	 * @author game
	 * 
	 */	
	public class Bubble extends Sprite
	{
		
		private var looks		:Button;
		private var texture	:Texture;
		
		/**
		 * 小圆球在这里 
		 * @param pType 圆球类型
		 * 
		 */		
		public function Bubble(pType:int,pTexture:Texture)
		{
			super();
			texture	=	pTexture;
			initTexture();
		}
		
		private function initTexture():void
		{
			looks	=	new Button(texture,int(Math.random()*100).toString());
			looks.fontColor	=	0xFFFFFF;
			looks.width	=	looks.height	= 200*Math.random();
			addChild(looks);
		}
	}
}